home *** CD-ROM | disk | FTP | other *** search
Modula Definition | 1996-06-21 | 2.7 KB | 81 lines | [TEXT/MEDT] |
- DEFINITION MODULE MatEditor;
-
- (*******************************************************************
-
- Module MatEditor (Version 1.0)
-
- Copyright ©1993 by Olivier Roth, Andreas Fischlin,
- and Swiss Federal Institute of Technology Zürich ETHZ
-
- Purpose: provides an interactive, simple way of entering and
- editing a matrix in a 'Dialog Machine' window.
-
- Remarks: uses DMWindows, DMWindIO, DMEditFields.
-
- This module is part of the Mat-library, which forms
- part of the RAMSES package.
-
- Programming
- o Design and Implementation
- O. Roth 15.11.89
- A. Fischlin 28/Mai/93
-
- Systems Ecology Group
- Swiss Federal Institute of Technology Zurich ETHZ
- Department of Environmental Sciences
- Grabenstr. 3
- CH-8952 Schlieren/Zurich
- Switzerland
-
- Last revision of definition: 28/Mai/93 af
-
- *******************************************************************)
-
- FROM DMWindows IMPORT WindowFrame;
-
- FROM Matrices IMPORT Matrix, Selection;
-
-
-
- PROCEDURE OpenMatrixEditor;
- (* Invokes the Matrix Editor in a separate window in which one
- * may chose interactivelly among the following commands:
- * New…, Open…, Save, Save As…, Close, Show, Hide, Duplicate, Rename.
- *)
-
- PROCEDURE CloseMatrixEditor;
- (* Closes the Matrix Editor's window. *)
-
-
- PROCEDURE ShowMatrixInWindow( VAR a: Matrix; wF: WindowFrame );
- (* Opens a window with matrix "a" at location "wF". If "a" is not
- * an existent matrix (declared with MatBase.DeclMatrix) a new
- * matrix of dimension 2 x 2 and name 'Untitled' is declared implicitely.
- * If "wF.w" or "wF.h" are specified <= 0 then the matrix's window is
- * opened as big as necessary centered on the screen.
- * Closing the window interactivelly is equivalent to a call to
- * "HideMatrixInWindow" (see below). *)
-
- PROCEDURE HideMatrixInWindow( VAR a: Matrix );
- (* Closes the window in which matrix "a" is being edited. The matrix
- * "a" is not removed from the list of editable matrices and can be
- * reopened in a matrix edit window either interactivelly (Show) or
- * with the procedure "ShowMatrixInWindow". *)
-
-
- PROCEDURE AddMatrixToMatEdList( a: Matrix );
- (* This procedure adds the matrix "a" to the list of editable matrices
- * without showing it in a matrix edit window. *)
-
- PROCEDURE DelMatrixFromMatEdList( a: Matrix );
- (* This procedure deletes the matrix "a" from the list of editable
- * matrices and closes an eventual open matrix edit window. *)
-
-
- PROCEDURE SetSelection( a: Matrix; sel: Selection );
- PROCEDURE GetSelection( a: Matrix; VAR sel: Selection );
-
-
-
- END MatEditor.
-